package org.hamster.multidropbox.mainView.event
{
	import flash.events.Event;
	
	import org.hamster.multidropbox.dropbox.vo.AppDropboxFile;

	public class MainViewEvent extends Event
	{
		public static const IMPORT_ACCOUNT_POPUP_SHOW:String = "importAccountPopupShow";
		public static const IMPORT_ACCOUNT_POPUP_HIDE:String = "importAccountPopupHide";
		
		public static const UPLOAD_FILE_POPUP_SHOW:String = "uploadFilePopupShow";
		public static const UPLOAD_FILE_POPUP_HIDE:String = "uploadFilePopupHide";
		
		public static const LINK_FOLDER_POPUP_SHOW:String = "linkFolderPopupShow";
		public static const LINK_FOLDER_POPUP_HIDE:String = "linkFolderPopupHide";
		
		public static const LINK_FOLDER_UPLOAD_POPUP_SHOW:String = "linkFolderUploadPopupShow";
		public static const LINK_FOLDER_UPLOAD_POPUP_HIDE:String = "linkFolderUploadPopupHide";
		
		public static const LINK_FOLDERS_VIEW_SHOW:String = "linkFoldersViewShow";
		public static const LINK_FOLDERS_VIEW_HIDE:String = "linkFoldersViewHide";
		
		public static const FILE_ITEM_DOUBLE_CLICK:String = "fileItemDoubleClick";
		public static const FILE_ITEM_SHOW_DETIALS:String = "fileItemShowDetails";
		public static const FILE_ITEM_HIDE_DETIALS:String = "fileItemHideDetails";
		public static const FILE_ITEM_UPLOAD:String       = "fileItemUpload";
		
		
		public static const DATA_RENDERER_ITEM_CLICK:String = "dataRendererItemClick";
		public static const MAX_STORAGE_SIZE_CHANGE:String  = "maxStorageSizeChange";
		public static const UPLOAD_FILE_LOAD_COMPLETE:String = "uploadFileLoadComplete";
		
		public var dropboxFile:AppDropboxFile;
		
		public var oldValue:*;
		public var newValue:*;
		public var data:*;
		
		public function MainViewEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			var result:MainViewEvent = new MainViewEvent(type, bubbles, cancelable);
			result.dropboxFile = dropboxFile;
			return result;
		}
	}
}